package com.neusoft.neuiotms.dcvm.dto;

import java.util.Date;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.neusoft.bizcore.web.dto.AbstractDTO;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AlarmDTO extends AbstractDTO {
    private static final long serialVersionUID = 1L;

    /** 告警ID */
    @NotNull(message = "告警ID")
    private String alarmId;

    /** 告警设备 */
    @NotNull(message = "告警设备")
    private String assetCode;

    /** 告警设备名 */
    private String assetName;

    /** 位置编码 */
    private String locationCode;

    /** 位置名称 */
    private String locationName;

    /** 机柜编码 */
    private String cabinetCode;

    /** 机柜名称 */
    private String cabinetName;

    /** 告警设备 */
    @NotNull(message = "告警等级")
    private String alarmLevel;

    /** content */
    @NotNull(message = "告警内容")
    private String alarmContent;

    @NotNull(message = "告警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date alarmTime;

    /** 告警来源：2=IDC 综合运管平台告警 */
    private Integer sourceType;
}
